package ifmo.compiler.task21.parser.symbols;


public class Nonterminal extends Symbol {
	private boolean _isStartSymbol = false;
	
	public Nonterminal()
	{	
		super(SymbolType.Nonterminal);
	}
	
	public Nonterminal(String value)
	{
		super(value, SymbolType.Nonterminal);
	}
	
	public boolean equals(Object obj)
	{
		if (obj instanceof Nonterminal)
		{
			return super.equals(obj);
		}
		
		return false;
	}
	
	public boolean IsStartSymbol()
	{
		return _isStartSymbol;
	}
	
	public void MarkAsStartSymbol()
	{
		_isStartSymbol = true;
	}
}
